package com.biz.primus.ms.depot.trans;


import com.biz.primus.common.utils.CopyUtils;
import com.biz.primus.model.depot.vo.DepotRespVo;
import com.biz.primus.ms.depot.dao.po.Depot;
import com.google.common.base.Function;

/**
 * @author zhangcheng
 * @date 2016/12/14
 * @reviewer
 * @see
 */
public class Depot2DepotRespVo implements Function<Depot, DepotRespVo> {
    @Override
    public DepotRespVo apply(Depot depot) {
        DepotRespVo depotResponseVo = new DepotRespVo();
        if (depot != null) {
            CopyUtils.copyProperties(depot, depotResponseVo);
            depotResponseVo.setId(String.valueOf(depot.getId()));
        }
        return depotResponseVo;
    }
}
